#ifndef UPDATEDBTHREAD_H
#define UPDATEDBTHREAD_H

#include <QThread>

class UpdatedbWorker;

class UpdatedbThread : public QThread
{
    Q_OBJECT
public:
    UpdatedbThread(QObject *parent = 0);
    ~UpdatedbThread();

    UpdatedbWorker* worker();

private:
    UpdatedbWorker *mWorker = nullptr;
};

class UpdatedbWorker : public QObject
{
    Q_OBJECT
public:
    UpdatedbWorker();
    ~UpdatedbWorker();

signals:
    void updating();
    void finished();
    void error(const QString &msg);

public slots:
    void updatedb();
};

#endif // UPDATEDBTHREAD_H
